<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        // function fab(n) {
        //     if (n == 0) {
        //         return 0;
        //     } else if (n == 1) {
        //         return 1;
        //     } else if (n > 1) {
        //         return fab(n - 1) + fab(n - 2);
        //     }
        // }
        //
        // var f = fab(6);
        // alert(f);

        var oo={
            name:'Jim',
            age:19,
            gendr:'男',
            sayHello:function () {
                console.log('你好');
            }
        };
        oo.sayHello();
        oo.height=175;
        for (var i in oo){
            console.log(oo[i])
        }

    </script>
</head>
<body>
<p>整数1：<input id="num1" type="text"></p>
<p>整数2：<input id="num2" type="text"></p>
<p>
    <input type="button" value="相加" onclick="calc(add)">
    <input type="button" value="相减" onclick="calc(sub)">
    <input type="button" value="相乘" onclick="calc(mul)">
    <input type="button" value="相除" onclick="calc(div)">
</p>
<p>结果：<input id="result" type="text" readonly></p>
</body>
<script type="text/javascript" src="..\js\computer.js"></script>
</html>